package com.star.uc.infras.repository.model;

import com.star.common.core.contract.BaseRepository;
import com.star.common.core.contract.Model;
import com.star.uc.infras.repository.service.UserListConfigRepository;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.time.LocalDateTime;

/**
 * 用户名单配置(UserListConfig)领域类
 *
 * @author zhouhengzhe
 * @since 2023-11-30 22:48:44
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@EqualsAndHashCode(callSuper = true)
public class UserListConfigBO extends Model {

    @Schema(description = "主键")
    private String id;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    @Schema(description = "创建人编码")
    private String createBy;

    @Schema(description = "创建人")
    private String creator;

    @Schema(description = "更新人编码")
    private String updateBy;

    @Schema(description = "更新人")
    private String updater;

    @Schema(description = "应用ID")
    private String tenantId;

    @Schema(description = "值（手机号/邮箱/高费用/虚拟手机号前缀）")
    private String value;

    /**
     * 名单类型（1、黑名单，2、白名单,3、高费用，4、虚拟手机号前缀）
     *
     * @see com.star.uc.contract.enums.ListTypeEnum
     */
    @Schema(description = "名单类型（1、黑名单，2、白名单,3、高费用,4、虚拟手机号前缀）")
    private Integer listType;

    /**
     * 状态(0禁止，1正常)
     *
     * @see com.star.common.core.contract.enums.StatusEnum
     */
    @Schema(description = "状态(0禁止，1正常)")
    private Integer status;

    public static UserListConfigRepository repository() {
        return BaseRepository.of(UserListConfigBO.class);
    }
}
